#ifndef _COLOR_H
#define _COLOR_H

#include "system.h"

typedef enum
{
  RED,
  GREEN,
  BLUE,
  WHITE,
  BLACK,
  Uknown
} Color_type;


typedef struct
{
  u8 r_val;
  u8 g_val;
  u8 b_val;
  Color_type color;
} Col_inf;

extern Col_inf col_inf;

void Set_brightness(u8 percent);

void Set_white_balance(void);

void Get_RGB_val(void);

void Get_average_RGB(u8 time);

Color_type judge_color(void);

#endif
